add_definitions("-g -std=c++17")
SET(CMAKE_BUILD_TYPE "Debug")
SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g2 -ggdb")
SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall")

add_executable(cli cli.cpp ../tcp/tcpClient.cpp ../tcp/ipAddressPort.cpp ../logger/logger.cpp ../logger/message.cpp ../logger/timeStamp.cpp    ../threadPool/thread.cpp ../threadPool/threadPool.cpp ../reactor/reactor.cpp)
add_executable(ser ser.cpp ../tcp/tcpServer.cpp ../tcp/ipAddressPort.cpp ../logger/logger.cpp ../logger/message.cpp ../logger/timeStamp.cpp    ../threadPool/thread.cpp ../threadPool/threadPool.cpp ../reactor/reactor.cpp)
target_link_libraries(cli pthread event)
target_link_libraries(ser pthread event)